

#include "stdafx.h"

#include "../../loader.h"

using namespace dlguif;

Loader loader;
void*  main_form;




void CALLBACK OnGuiEventCallBack(void* user_context, const callback_info* ci)
{
	
}


int _tmain(int argc, _TCHAR* argv[])
{
	main_form = loader.CreateForm("window", "mainform", 
			&Loader::MakeRectangle(10, 10, 800, 600) );

	loader.SetGuiEventCallBack(OnGuiEventCallBack, (void*)this);
	loader. // void* CreateToolbar(void* ownerForm);
		// void* CreateToolbarButton(void* pToolbar);
	loader.ShowForm(m_main_form);

	while(loader.ProcessMessages())
	{
	 
		Sleep(1);
	}

	return 0;
}
